import datetime
from django import template
from django.http import request

register = template.Library()


@register.filter(name="list_in")
def my_filter_name(work_list,id):
    id_list=[]
    for work_id in work_list:

        id_list.append(work_id[0])
    if id in id_list:
        return True
    else:
        return False



register.filter('my_filter_name', my_filter_name)
